#ifndef DIALOG_CONFIGWORKGROUPPARAS_H
#define DIALOG_CONFIGWORKGROUPPARAS_H

#include <QDialog>
#include <QSettings>
#include "IniManager.h"

namespace Ui {
class Dialog_configWorkGroupParas;
}

class Dialog_configWorkGroupParas : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog_configWorkGroupParas(QWidget *parent = nullptr);
    ~Dialog_configWorkGroupParas();
    void savePara();
    void loatPara();
    void initData();
signals:

    void currentWorkGroupData(const QMap<QString, QString> WorkGroupData);

private slots:

    void on_btn_save_clicked();

    void on_btn_cancel_clicked();

    void on_btn_next_clicked();

    void on_btn_pre_clicked();

    void on_btn_addNewGroup_clicked();

private:
    Ui::Dialog_configWorkGroupParas *ui;
    int currentGroupIndex;
    QStringList groups;
    int maxGroupIndex;
    QSettings *settings;
    QString currentGroup;

    iniManager *m_iniManager = nullptr;
};

#endif // DIALOG_CONFIGWORKGROUPPARAS_H
